package com.my.vote;


import com.sfh.lib.AbstractApplication;

import cn.bmob.v3.Bmob;

/**
 * 功能描述:全局唯一
 *
 * @author Xiao Jingxiang 肖景翔
 * @date 2018/4/11
 */
public class VoteApplication extends AbstractApplication {

    /**用户信息缓存KEY*/
    public static final String USER = "USER";
    /**用户账号缓存KEY*/
    public static final String ACCOUNT = "ACCOUNT";
    @Override
    public String getPreFile() {
        return "vote.pref";
    }

    @Override
    public String getCachePath() {
        return "vote";
    }

    @Override
    public String getCrashReport() {
        return "";
    }

    @Override
    public void onCreate() {
        super.onCreate();
        // 初始化后台服务
        Bmob.initialize(this, "2932d4d7451f480dab6594c0d912d14f");
    }

    @Override
    public void onLoseToken(String s) {

    }
}
